﻿<Window x:Class="manager.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Synchronizer for foobar2000" Height="428" Width="862">
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="5" />
			<RowDefinition Height="50" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<ToolBarTray Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Top">
			<ToolBar Band="1">
				<Button Name="buttonOpen" Click="buttonOpen_Click">Open</Button>
				<Separator />
				<Button Name="buttonCommit" IsEnabled="False" Click="buttonCommit_Click">Copy to Device</Button>
				<Button Name="buttomStop" IsEnabled="False" Click="buttomStop_Click">Stop</Button>
				<Separator />
				<Button Name="buttonRemoveJunk" IsEnabled="False" Click="buttonRemoveJunk_Click">Remove Junks</Button>
				<Separator />
				<Button Name="buttonAbout" Click="buttonAbout_Click">About</Button>
			</ToolBar>
		</ToolBarTray>
		<ListView Grid.Row="1" Name="listviewLibrary" FontSize="11" MouseDoubleClick="listviewLibrary_MouseDoubleClick">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="Artist" Width="100" DisplayMemberBinding="{Binding Artist}" />
					<GridViewColumn Header="Album" Width="100" DisplayMemberBinding="{Binding Album}" />
					<GridViewColumn Header="TrackName" Width="200" DisplayMemberBinding="{Binding TrackName}" />
					<GridViewColumn Header="Encoding" Width="50" DisplayMemberBinding="{Binding Encoding}" />
					<GridViewColumn Header="Library Path" Width="150" DisplayMemberBinding="{Binding Path}" />
					<GridViewColumn Header="Device Path" Width="150" DisplayMemberBinding="{Binding DevicePath}" />
					<GridViewColumn Header="Status" Width="30">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<Image Source="{Binding Path=SyncStatusIconPath}" Width="16" />
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
					<GridViewColumn Header="Actions" Width="100">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<DockPanel>
									<Image Source="{Binding Path=Action1IconPath}" Width="16" />
									<Image Source="{Binding Path=Action2IconPath}" Width="16" />
									<Image Source="{Binding Path=Action3IconPath}" Width="16" />
									<Image Source="{Binding Path=Action4IconPath}" Width="16" />
									<Image Source="{Binding Path=Action5IconPath}" Width="16" />
								</DockPanel>
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
				</GridView>
			</ListView.View>
		</ListView>
		<GridSplitter Grid.Row="2" ResizeDirection="Rows" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
		<ListBox Grid.Row="3" Name="listboxLog" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ScrollViewer.VerticalScrollBarVisibility="Auto">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<DockPanel>
						<Image Source="{Binding Path=IconPath}" Width="16" />
						<TextBlock Text="{Binding Path=Message}" />
					</DockPanel>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<StatusBar Grid.Row="4" HorizontalAlignment="Stretch">
			<TextBlock Name="textblockStatus" />
			<ProgressBar Name="progressbarWorker" Width="200" Height="15" Visibility="Collapsed" />
		</StatusBar>
	</Grid>
</Window>
